package pack1;

public class Main {
    public static void main(String[] args) {
        Person p1 = new Person().setName("张三");
        Person p2 = new Person().setName("李四");
        RunablePK runablePK = new RunablePK(p1,p2);
        new Thread(runablePK,"线程名字1").start();
        try {
            Thread.sleep(30000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        runablePK.close();
        System.out.println("本场结束");

    }


}
